package lib.bone.nepudata.dao;

import lib.bone.nepudata.domain.entity.NepuAward;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;


public interface NepuAwardDAO extends JpaRepository<NepuAward,String> {
    Boolean existsByAwardDictId(String awardDictId);

    List<NepuAward> findByIdIn(List<String> ids);


    List<NepuAward> findAll();
    /**
     * 根据获奖名称和领导人查询
     */
    Optional<NepuAward> findByAwardNameAndLeader(String awardName,String leader);


}
